export const delay = time => new Promise(resolve => setTimeout(resolve, time))
export const createAction = type => payload => ({ type, payload })
export const createActionFeedback = type => payload => onComplete => ({ type, payload, onComplete })